home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / utils / spr_cut / cutlst.h < prev    next >
C/C++ Source or Header  |  1995-03-10  |  1KB  |  60 lines

  1. /* ---------------------------------------------------- */
  2. /* (c) 1995 Niksoft International                       */
  3. /* SPRITE CUTTER UTILITY v2.0                           */
  4. /* ---------------------------------------------------- */
  5. /* CUTLST.H                                             */
  6. /* ---------------------------------------------------- */
  7.  
  8. #ifndef __RGBCOLOR
  9.  
  10. #define __RGBCOLOR
  11.  
  12. typedef struct {
  13.  
  14.                 char red;
  15.                 char green;
  16.                 char blue;
  17.  
  18.                } RGB_color;
  19.  
  20. #endif
  21.  
  22. #ifndef __PICTURE
  23.  
  24. #define __PICTURE
  25.  
  26. typedef struct {
  27.  
  28.                 RGB_color palette[256];
  29.                 char far *buffer;
  30.  
  31.                } picture;
  32.  
  33. #endif
  34.  
  35. #define MAXSTRINGLEN        25
  36.  
  37. extern struct CUT {
  38.                    unsigned x, y;
  39.                    unsigned char height, width;
  40.                    struct CUT *next;
  41.                   } *cut_list;
  42.  
  43. extern picture source_pic;
  44. extern char source_name[MAXSTRINGLEN];
  45. extern unsigned char cut_x_size, cut_y_size;
  46.  
  47. extern int load_source(char *);
  48.  
  49. extern int cut_sprite(unsigned, unsigned);
  50.  
  51. extern int load_LST();
  52.  
  53. extern int save_LST(unsigned);
  54.  
  55. extern void destroy_LST();
  56.  
  57. extern int save_SPR();
  58.  
  59. extern void Draw_cuts();
  60.